﻿<sdk:Page 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    x:Class="LASGui.Views.Asientos"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"
    Title="Asientos" Width="Auto" Height="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" 
    Style="{StaticResource PageStyle}" >
	
    <Grid x:Name="LayoutRoot" HorizontalAlignment="Center" VerticalAlignment="Center">
        <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}" Margin="-58,0,-75,-20">
        	<Grid Background="#FFBCBCBC" Height="542" Width="1254">
        		<Rectangle Style="{StaticResource DividerStyle}" HorizontalAlignment="Left" Margin="300,8,0,9" d:LayoutOverrides="HorizontalAlignment, Width" Fill="#8A080808"/>
        		<TextBlock HorizontalAlignment="Left" Height="52" Margin="48,30,0,0" TextWrapping="Wrap" Text="Asientos" VerticalAlignment="Top" Width="154" FontSize="48" Foreground="#FF0384C5" d:LayoutOverrides="HorizontalAlignment"/>
        		<sdk:TabControl Margin="325,30,18,27" BorderBrush="{x:Null}" Background="#FFA7A5A5">
        			<sdk:TabItem Header="Agregar un nuevo Asiento    " Style="{StaticResource TabItemStyle1}" HorizontalAlignment="Left" Margin="0,-1,0,1" FontSize="21.333" Background="{x:Null}" BorderBrush="{x:Null}">
        				<Grid Margin="0,0,-12,0" Height="457" HorizontalAlignment="Center" VerticalAlignment="Center" Width="960">
        					<sdk:DataGrid x:Name="GridAsientosAgregar" Margin="34,181,408,28" KeyDown="GridAsientosAgregarKeyDown" AutoGenerateColumns="False" Foreground="Black" FontSize="14.667">
        						<sdk:DataGrid.Columns >
        							<sdk:DataGridTextColumn Binding="{Binding NombreCuenta}" Header="Cuenta" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding Moneda}" Header="Moneda Original" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding SistemaDebe}" Header="Debe (Sistema)" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding SistemaHaber}" Header="Haber(Sistema)" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding LocalDebe}" Header="Debe (Local)" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding LocalHaber}" Header="Haber(Local)" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding OtraDebe}" Header="Debe (Otra Moneda)" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding OtraHaber}" Header="Haber (Otra Moneda)" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding TipoCambio}" Header="Tipo de Cambio" IsReadOnly="True" Width="Auto"/>
        						</sdk:DataGrid.Columns>  					
        					</sdk:DataGrid>
        					<StackPanel Margin="34,10,0,0" Height="137" VerticalAlignment="Top">
        						<Border BorderThickness="1" Height="42" Margin="0,0,265,0">
        							<TextBlock x:Name="ContentText10_Copy" Style="{StaticResource ContentTextStyle}" 
        								Text="Complete la siguiente información, para agregar un nuevo asiento." Margin="0,-3,0,-1" Width="872" FontWeight="Bold"/>
        						</Border>
        						<StackPanel Orientation="Horizontal" Height="46" d:LayoutOverrides="HorizontalAlignment">
        							<Border BorderThickness="1" Height="74" Margin="0,1,0,-29" Width="125">
        								<TextBlock Style="{StaticResource ContentTextStyle}" 
        									Text="Fecha:" Margin="0" Width="124" Height="27" d:LayoutOverrides="Height" VerticalAlignment="Top" FontWeight="Bold"/>
        							</Border>
        							<Border BorderThickness="1" Margin="0,0,0,-4" Width="180">
        								<sdk:DatePicker x:Name="InputEntryDate" FontSize="16" Margin="0,0,28,21"/>
        								
        							</Border>
        							<Border BorderThickness="1" Height="74" Margin="0,1,0,-29" Width="125">
        								<TextBlock Style="{StaticResource ContentTextStyle}" 
        									Text="Comentario:" Margin="0" Width="124" Height="27" d:LayoutOverrides="Height" VerticalAlignment="Top" FontWeight="Bold"/>
        							</Border>
        							<Border BorderThickness="1" Margin="0,0,0,-4" Width="180">
        								<TextBox x:Name="InputEntryComment"
        									TextWrapping="Wrap" Margin="0,-1,28,22" FontSize="16" Height="27" Width="150"/>
        							</Border>
        							<Border BorderThickness="1" Height="74" Margin="0,1,0,-29" Width="125">
        								<TextBlock Style="{StaticResource ContentTextStyle}" 
        									Text="Referencia 1:" Margin="0,0,-1,0" Height="27" d:LayoutOverrides="Height" VerticalAlignment="Top" FontWeight="Bold" HorizontalAlignment="Stretch"/>
        							</Border>
        							<Border BorderThickness="1" Margin="0,0,0,-4" Width="180">
        								<TextBox x:Name="InputEntryRef1"
        									TextWrapping="Wrap" Margin="0,-1,28,22" FontSize="16" Height="27" Width="150"/>
        							</Border>
        						</StackPanel>
        						<StackPanel Orientation="Horizontal" Height="76" d:LayoutOverrides="HorizontalAlignment">
        							<Border BorderThickness="1" Height="74" Margin="0,1" Width="125" d:LayoutOverrides="VerticalMargin">
        								<TextBlock Style="{StaticResource ContentTextStyle}" 
        									Text="Referencia 2:" Margin="0" Width="124" Height="27" d:LayoutOverrides="Height" VerticalAlignment="Top" FontWeight="Bold"/>
        							</Border>
        							<Border BorderThickness="1" Margin="0,0,0,26" Width="180">
        								<TextBox x:Name="InputEntryRef2"
        									TextWrapping="Wrap" Margin="0,-1,28,22" FontSize="16" Height="27" Width="150"/>
        							</Border>
        							<Border BorderThickness="1" Height="74" Margin="0,1" Width="125" d:LayoutOverrides="VerticalMargin">
        								<TextBlock Style="{StaticResource ContentTextStyle}" 
        									Text="Referencia 3:" Margin="0" Width="124" Height="27" d:LayoutOverrides="Height" VerticalAlignment="Top" FontWeight="Bold"/>
        							</Border>
        							<Border BorderThickness="1" Margin="0,0,0,26" Width="180">
        								<TextBox x:Name="InputEntryRef3"
        									TextWrapping="Wrap" Margin="0,-1,28,22" FontSize="16" Height="27" Width="150"/>
        							</Border>
        							<Grid x:Name="BotonAgregar" Width="163" Margin="0,0,0,37">
        								<Rectangle Fill="#FF0384C5" RadiusX="20" RadiusY="30" Margin="0,-4,-84,4" />
        								<HyperlinkButton Style="{StaticResource ButtonStyle}" Content="Agregar nuevo asiento" FontSize="24"  Margin="17,2,-82,10" Click="AgregarAsiento"/>
        							</Grid>
        						</StackPanel>
        						<Grid Height="39" Margin="40,0,0,0" HorizontalAlignment="Left" Width="82">
        							<Rectangle Fill="#FF0384C5" RadiusX="20" RadiusY="30" Margin="-14,-9,0,9" />
        							<HyperlinkButton Style="{StaticResource ButtonStyle}" Content="Agregar" FontSize="24"  Margin="-7,-4,-108,16"/>
        						</Grid>
        					</StackPanel>
        					<StackPanel HorizontalAlignment="Right" Width="364" Margin="0,211,27,-21" Orientation="Horizontal">
        						<StackPanel Width="333" Margin="0,0,-145,-67" Height="334" d:LayoutOverrides="HorizontalAlignment">
        							<Border BorderThickness="1" Height="36">
        								<TextBlock x:Name="ContentText2" Style="{StaticResource ContentTextStyle}" 
        									Text="Cuenta:" Margin="0,0,0,7" Width="220" Height="27" FontWeight="Bold"/>
        							</Border>
        							<Border BorderThickness="1" Margin="0,0,30,0" Height="28">
        								<ComboBox x:Name="InputTransaccionCuenta" Height="27" Margin="-1,0,0,0" FontSize="16" VerticalAlignment="Top" d:LayoutOverrides="Width, Height" Width="150" RenderTransformOrigin="0.32,0.519" HorizontalAlignment="Left"/>
        							</Border>
        							<Border BorderThickness="1" Height="36">
        								<TextBlock x:Name="ContentText4" Style="{StaticResource ContentTextStyle}" 
        									Text="Tipo:" Margin="0,0,0,7" Width="220" Height="27" FontWeight="Bold"/>
        							</Border>
        							<Border BorderThickness="1" Margin="0,0,30,0" Height="28">
        								<ComboBox x:Name="InputTransaccionTipo" Height="27" Margin="-1,0,0,0" FontSize="16" VerticalAlignment="Top" d:LayoutOverrides="Width, Height" Width="150" SelectedIndex="0" HorizontalAlignment="Left">
        									<sdk:Label Content="Debe"/>
        									<sdk:Label Content="Haber"/>
        								</ComboBox>
        							</Border>
        						</StackPanel>
        						<StackPanel Width="188" Margin="0,0,-145,0" d:LayoutOverrides="HorizontalAlignment">
        							<Border BorderThickness="1" Height="36">
        								<TextBlock x:Name="ContentText6" Style="{StaticResource ContentTextStyle}" 
        									Text="Moneda:" Margin="0,0,0,7" Width="220" Height="27" FontWeight="Bold"/>
        							</Border>
        							<Border BorderThickness="1" Margin="0,0,30,0" Height="28">
        								<ComboBox x:Name="InputTransaccionMoneda" Height="27" Margin="-1,0,0,0" FontSize="16" VerticalAlignment="Top" d:LayoutOverrides="Width, Height" Width="150" HorizontalAlignment="Left"/>
        							</Border>
        							<Border BorderThickness="1" Height="36">
        								<TextBlock x:Name="ContentText3_Copy2" Style="{StaticResource ContentTextStyle}" 
        									Text="Monto:" Margin="0,4,0,3" Width="251" Height="27" FontWeight="Bold"/>
        							</Border>
        							<Border BorderThickness="1" Height="50" Margin="0,0,-26,0">
        								<TextBox x:Name="InputTransaccionMonto" TextWrapping="Wrap" Margin="-1,1,0,20" FontSize="16" Height="27" Width="150" HorizontalAlignment="Left" d:LayoutOverrides="Width"/>
        							</Border>
        						</StackPanel>
        					</StackPanel>
        					<Grid Height="27" VerticalAlignment="Bottom" Margin="0,0,119,57" HorizontalAlignment="Right" Width="187">
        						<Rectangle Fill="#FF0384C5" RadiusX="20" RadiusY="30" Margin="-14,-9,-8,-3" />
        						<HyperlinkButton Style="{StaticResource ButtonStyle}" Content="Agregar transacción" FontSize="24"  Margin="-8,-4,-8,4" Click="AgregarTransaccion"/>
        					</Grid>
        				</Grid>
        			</sdk:TabItem>
        			<sdk:TabItem Header="Detalle de asientos anteriores" Style="{StaticResource TabItemStyle1}" Margin="1,-1,-1,1" FontSize="21.333">
        				<Grid Margin="0,0,-12,0" Height="457" Width="916">
        					<Grid.ColumnDefinitions>
        						<ColumnDefinition Width="0.045*"/>
        						<ColumnDefinition Width="0.955*"/>
        					</Grid.ColumnDefinitions>
        					<StackPanel Orientation="Horizontal" Height="46" Margin="128,37,-13,0" VerticalAlignment="Top" Grid.Column="1" d:LayoutOverrides="HorizontalAlignment">
        						<Border BorderThickness="1" Height="74" Margin="0,1,0,-29" Width="73">
        							<TextBlock Style="{StaticResource ContentTextStyle}" 
        								Text="Fecha Inicial:" Margin="-54,0,0,0" Width="123" Height="27" d:LayoutOverrides="Height" VerticalAlignment="Top" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Margin="0,0,0,-4" Width="180">
        							<sdk:DatePicker x:Name="InputEntriesDetailInit" FontSize="16" Margin="0,0,28,21"/>
        								
        						</Border>
        						<Border BorderThickness="1" Height="74" Margin="0,1,0,-29" Width="125">
        							<TextBlock Style="{StaticResource ContentTextStyle}" 
        								Text="Fecha Final:" Margin="0" Width="124" Height="27" d:LayoutOverrides="Height" VerticalAlignment="Top" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Margin="0,0,0,-4" Width="180">
        							<sdk:DatePicker x:Name="InputEntriesDetailEnd" FontSize="16" Margin="0,0,28,21"/>
        						</Border>
        						<Grid Margin="0,0,0,19" Width="187">
        							<Rectangle Fill="#FF0384C5" RadiusX="20" RadiusY="30" Margin="-14,-9,0,-3" HorizontalAlignment="Left" Width="83" />
        							<HyperlinkButton Style="{StaticResource ButtonStyle}" Content="Buscar" FontSize="24"  Margin="-5,-4,0,4" Click="ActualizarDetalleAsientos" HorizontalAlignment="Left" Width="68"/>
        						</Grid>
        					</StackPanel>
        					<TextBlock x:Name="ContentText10_Copy1" Style="{StaticResource ContentTextStyle}" 
        						Text="Asientos anteriores" Margin="1,-2,0,0" Width="872" FontWeight="Bold" Grid.ColumnSpan="2" Height="44" VerticalAlignment="Top"/>
        					<sdk:DataGrid x:Name="GridAsientosDetalles" Margin="18,87,32,27" AutoGenerateColumns="False" Foreground="Black" FontSize="14.667" Grid.ColumnSpan="2" KeyDown="GridAsientosAgregarKeyDown">
        						<sdk:DataGrid.Columns >
                                    <sdk:DataGridTextColumn Binding="{Binding IdUnico}" Header="Número de Asiento" IsReadOnly="True" Width="Auto"/>
                                    <sdk:DataGridTextColumn Binding="{Binding Fecha}" Header="Fecha" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding NombreCuenta}" Header="Cuenta" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding SistemaDebe}" Header="Debe (Sistema)" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding SistemaHaber}" Header="Haber(Sistema)" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding LocalDebe}" Header="Debe (Local)" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding LocalHaber}" Header="Haber(Local)" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding OtraDebe}" Header="Debe (Otra Moneda)" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding OtraHaber}" Header="Haber (Otra Moneda)" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding TipoCambio}" Header="Tipo de Cambio" IsReadOnly="True" Width="Auto"/>
									<sdk:DataGridTextColumn Binding="{Binding Comentario}" Header="Comentario" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding Referencia1}" Header="Referencia1" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding Referencia2}" Header="Referencia2" IsReadOnly="True" Width="Auto"/>
        							<sdk:DataGridTextColumn Binding="{Binding Referencia3}" Header="Referencia3" IsReadOnly="True" Width="Auto"/>
        						</sdk:DataGrid.Columns> 			
        					</sdk:DataGrid>
        				</Grid>
        			</sdk:TabItem>
        		</sdk:TabControl>
        	</Grid>
        </ScrollViewer>
    </Grid>
</sdk:Page>

